/**
 * Created with IntelliJ IDEA.
 * Description:多态、向上转型、动态绑定
 * User: dings
 * Date: 2024-05-16
 * Time: 20:05
 */
public class Test {
    public static void main(String[] args) {
        Shape[] shapes = {new Cycle(),new Cycle(),new Flower(),new Rect(),new Flower()};
        for (Shape shape:shapes) {
            shape.draw();
        }
    }

}
